package com.android.systemui.ios;

import android.telephony.TelephonyManager;

public class Constants {

    public static final boolean KEYGUARD_ENABLE = false;

    public static int screenWidth = 1080;

    public static int screenHeight = 2130;

    public static float screenDensity = 3.0f;

    public static int unlockBottomHeight = 300;

    public static int slideTopBarHeight = 200;

    public static int pageTurningSize = 400;

    public static int pageTurningVelocity = 600;

    public static boolean isExpanded = true;

    public static boolean isInShortcut = false;

    public static boolean isInWallpaper = false;

    public static final int ICON_LTE = R.drawable.ip_ic_qs_mobile_type_4g;
    public static final int ICON_LTE_PLUS = R.drawable.ip_ic_qs_mobile_type_4g;
    public static final int ICON_G = R.drawable.ip_ic_qs_mobile_type_2g;
    public static final int ICON_E = R.drawable.ip_ic_qs_mobile_type_2g;
    public static final int ICON_H = R.drawable.ip_ic_qs_mobile_type_2g;
    public static final int ICON_H_PLUS = R.drawable.ip_ic_qs_mobile_type_2g;
    public static final int ICON_3G = R.drawable.ip_ic_qs_mobile_type_3g;
    public static final int ICON_4G = R.drawable.ip_ic_qs_mobile_type_4g;
    public static final int ICON_4G_PLUS = R.drawable.ip_ic_qs_mobile_type_4g;
    public static final int ICON_5G_E = R.drawable.ip_ic_qs_mobile_type_5g;
    public static final int ICON_1X = R.drawable.ip_ic_qs_mobile_type_5g;
    public static final int ICON_5G = R.drawable.ip_ic_qs_mobile_type_5g;
    public static final int ICON_5G_PLUS = R.drawable.ip_ic_qs_mobile_type_5g;

    public static final int[] SingleSimStrengthIds = {
            R.drawable.ip_ic_mobile_signal_sim_0,
            R.drawable.ip_ic_mobile_signal_sim_1,
            R.drawable.ip_ic_mobile_signal_sim_2,
            R.drawable.ip_ic_mobile_signal_sim_3,
            R.drawable.ip_ic_mobile_signal_sim_4,
    };

    public static final int[] DualSim1StrengthIds = {
            R.drawable.ip_ic_mobile_dual_sim1_0,
            R.drawable.ip_ic_mobile_dual_sim1_1,
            R.drawable.ip_ic_mobile_dual_sim1_2,
            R.drawable.ip_ic_mobile_dual_sim1_3,
            R.drawable.ip_ic_mobile_dual_sim1_4,
    };

    public static final int[] DualSim2StrengthIds = {
            R.drawable.ip_ic_mobile_dual_sim2_0,
            R.drawable.ip_ic_mobile_dual_sim2_1,
            R.drawable.ip_ic_mobile_dual_sim2_2,
            R.drawable.ip_ic_mobile_dual_sim2_3,
            R.drawable.ip_ic_mobile_dual_sim2_4,
    };

    public static int getNetworkIconId(int network) {
        switch (network) {
            case TelephonyManager.NETWORK_TYPE_GPRS:
            case TelephonyManager.NETWORK_TYPE_EDGE:
            case TelephonyManager.NETWORK_TYPE_CDMA:
            case TelephonyManager.NETWORK_TYPE_1xRTT:
            case TelephonyManager.NETWORK_TYPE_IDEN:
            case TelephonyManager.NETWORK_TYPE_GSM:
                return ICON_G;
            case TelephonyManager.NETWORK_TYPE_UMTS:
            case TelephonyManager.NETWORK_TYPE_EVDO_0:
            case TelephonyManager.NETWORK_TYPE_EVDO_A:
            case TelephonyManager.NETWORK_TYPE_HSDPA:
            case TelephonyManager.NETWORK_TYPE_HSUPA:
            case TelephonyManager.NETWORK_TYPE_HSPA:
            case TelephonyManager.NETWORK_TYPE_EVDO_B:
            case TelephonyManager.NETWORK_TYPE_EHRPD:
            case TelephonyManager.NETWORK_TYPE_HSPAP:
            case TelephonyManager.NETWORK_TYPE_TD_SCDMA:
                return ICON_3G;
            case TelephonyManager.NETWORK_TYPE_LTE:
                return ICON_4G;
        }
        return ICON_E;
    }
}
